package com.gitee.j2cache;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cache.annotation.EnableCaching;

/**
 * J2CacheApplication
 *
 * @Author: tedking
 * @Date: 2025-02-18
 */
//@EnableJ2Cache
@EnableCaching
@SpringBootApplication
public class J2CacheApplication {

    public static void main(String[] args) {
        try {
            SpringApplication application = new SpringApplication(J2CacheApplication.class);
            application.setApplicationStartup(new BufferingApplicationStartup(2048));
            application.run(args);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}
